﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DataStudio
{
    public partial class loading : Form
    {
        public loading(string WatiText)
        {
            InitializeComponent();
            this.label1.Text = string.IsNullOrEmpty(WatiText) ? "" : WatiText;
        }

        public delegate void Closeloading();
        public void CloseLoading(IAsyncResult ar)
        {
            this.Invoke(new Closeloading(() => { this.Close(); }));
        }
    }
}
